package com.xy.gateway.service.impl;


import java.util.List;
import java.util.Map;
import java.util.Date;
import com.xy.core.util.BeanUtil;
import com.xy.common.page.Pagination;
import com.xy.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.xy.gateway.dao.RequestrecDao;
import com.xy.gateway.model.Requestrec;
import com.xy.gateway.service.RequestrecService;

@Service
@Transactional
public class RequestrecServiceImpl extends BaseServiceImpl<Requestrec> implements
		RequestrecService {
	private RequestrecDao requestrecDao;

	public RequestrecServiceImpl(RequestrecDao paramAppRoleDao) {
		super(paramAppRoleDao);
		this.requestrecDao = paramAppRoleDao;
	}

	@Override
	public boolean checkExist(String paraName, String paraValue) {
		return requestrecDao.checkExist("Requestrec", paraName, paraValue);
	}

	@Override
	public List<Requestrec> getRequestrec(Map<String, Object> map) {
		return requestrecDao.getRequestrec(map);
	}
	@Override
	public Pagination getRequestrecByPage(Map<String, Object> map, int pageNo,
			int pageSize) {
		// TODO Auto-generated method stub
		return requestrecDao.getRequestrecByPage(map, pageNo, pageSize);
	}
	 
   @Override
	public Requestrec save(Requestrec requestrec1) {return super.save(requestrec1);}
}